package windows.bet;

import java.util.LinkedList;
import java.util.List;
import org.uqbar.arena.widgets.Panel;
import org.uqbar.arena.widgets.Selector;
import org.uqbar.arena.windows.SimpleWindow;
import org.uqbar.arena.windows.WindowOwner;
import org.uqbar.commons.model.Entity;
import org.uqbar.commons.model.Home;

import strategy.bet.StrategyBet;
import strategy.bet.StrategyColumnBet;
import strategy.bet.StrategyDirectBet;
import strategy.bet.StrategyOddEvenBet;
import strategy.bet.StrategyRowBet;
import utilities.DummyObject;

public class ChooseBet extends SimpleWindow<DummyObject> {

	public ChooseBet(WindowOwner parent) {
		super(parent, new DummyObject(parent));
	}

	@Override
	protected void addActions(Panel mainPanel) {
		List<StrategyBet> element = new LinkedList<StrategyBet>();
		element.add(new StrategyColumnBet());
		element.add(new StrategyDirectBet());
		element.add(new StrategyOddEvenBet());
		element.add(new StrategyRowBet());
		new Selector(mainPanel).setContents(element, "name")
				.bindValueToProperty("strategy");
		
	}

	protected void createMainTemplate(Panel formBuilder) {
		this.setTitle(" The Happy Roulette ");
		this.setTaskDescription(" Please, choice a bet");
		super.createMainTemplate(formBuilder);
	}

	@Override
	protected void createFormPanel(Panel mainPanel) {}




}
